function userEditSkin( $user, $permArr ) {
  echo <<<EOE
        <form action="./user.php" method="post" >
          <input type="hidden" name="type" value="REGISTER" />
          user: ${user['name']}<br />
          pass: <input type="password" name="pass" value="password" /> <br />
          email: <input type="text" name="email" value="${user['hidden']}" /> <br />
          perms:<br />
EOE;
foreach( $permArr as $perm ) {
echo '<input type="text" name="', $perm, '" value="', $perm, '" /><br />';
}
echo <<<EOE
          <input type="submit" value="edit">
        </form>
EOE;
}
